package com.example.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RestRequestController {
    @GetMapping("api101/{id}")
    public String api101(@PathVariable("id") Integer id){
        return "api101, id = " + id;
    }
    @GetMapping("api100")
    public String api100(){
        return "api100";
    }
}
